TEMPLATE = app
#CONFIG += qt windows debug_and_release build_all
CONFIG += qt windows release
CONFIG += embed_manifest_exe
QT += sql svg

#CONFIG(debug, debug|release) {
#    CONFIG += console
#    TARGET = reflexis-debug
#} else {
#    TARGET = reflexis
#}

DEPENDPATH += . qextserial src
INCLUDEPATH += . qextserial src

OBJECTS_DIR    = build 
MOC_DIR        = build 
UI_DIR         = build 
RCC_DIR        = build
RC_FILE        = reflexis.rc

# Input
HEADERS += qextserialport.h \
           qextserialbase.h \
           Reflexis.h \
           ProbeWriter.h \
           Probe.h \
		   SettingsDialog.h \
           ProbeReader.h

FORMS += ui/reflexis.ui \
         ui/settings.ui

SOURCES += main.cpp \
           qextserialport.cpp \
		   qextserialbase.cpp \ 
           Reflexis.cpp \
           ProbeWriter.cpp \
           Probe.cpp \
		   SettingsDialog.cpp \
           ProbeReader.cpp

RESOURCES = reflexis.qrc

unix:HEADERS += posix_qextserialport.h
unix:SOURCES += posix_qextserialport.cpp
unix:DEFINES += _TTY_POSIX_

win32:HEADERS += win_qextserialport.h
win32:SOURCES += win_qextserialport.cpp
win32:DEFINES += _TTY_WIN_